package day09;

import java.util.ArrayList;

public class getMaxAge {
    private getMaxAge() {}
    public static int ga(ArrayList<StudentBean> arr1) {
        int max = arr1.get(0).getAge();
        for (int i = 0; i < arr1.size(); i++) {
            if (arr1.get(i).getAge() > max) {max = arr1.get(i).getAge();}
        }
        return max;
    }
}
